package com.projet.blocs;

import com.projet.labyrinth.Bille;

import android.graphics.Canvas;
import android.graphics.Paint;

public abstract class Bloc {
	
	protected int _x, _y;
	protected int _xEcran, _yEcran;
	protected int _tailleBloc;
	
	public Bloc(int tailleBloc, int x, int y) {
		_tailleBloc = tailleBloc;
		_x = x;
		_y = y;
		_xEcran = x * tailleBloc;
		_yEcran = y * tailleBloc;
	}
	
	public int GetX() {
		return _x;
	}
	
	public int GetY() {
		return _y;
	}
	
	public abstract boolean Collision(Bille bille);
	public abstract void Dessiner(Canvas pCanvas, Paint pPaint);
}
